We don't set :visible on the scrollbars, but use booleans to track
if they are visible. Thus check the booleans instead of the actor's
properties when allocating the scrollbars.
https://bugzilla.gnome.org/show_bug.cgi?id=704265
*/
/* Vertical scrollbar */
- if (CLUTTER_ACTOR_IS_VISIBLE (priv->vscroll))
+ if (vscrollbar_visible)
{
if (clutter_actor_get_text_direction (actor) == CLUTTER_TEXT_DIRECTION_RTL)
{
}
/* Horizontal scrollbar */
- if (CLUTTER_ACTOR_IS_VISIBLE (priv->hscroll))
+ if (hscrollbar_visible)
{
if (clutter_actor_get_text_direction (actor) == CLUTTER_TEXT_DIRECTION_RTL)
{